<?php
$node = $TREE->getNode($REQUEST->getRequestLast());

if($node && file_exists(ROOT . config::read('templates', 'core') .'/xml-'. $node->alias .'.xml'))
{
   header ("content-type: text/xml");
   $SMARTY->display('xml-'. $node->alias .'.xml');
}
exit(0);